package top.sdwu_top.kbase.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import top.sdwu_top.kbase.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author zhipeng.duan@nvr-china.com
 * @since 2020-02-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="KbaseFile对象", description="文件表")
public class KbaseFile extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "文件名")
    @TableField("FILE_NAME")
    private String fileName;

    @ApiModelProperty(value = "文件类型")
    @TableField("FILE_TYPE")
    private String fileType;

    @ApiModelProperty(value = "最新版本文件路径")
    @TableField("FILE_PATH")
    @JsonIgnore
    private String filePath;

    @ApiModelProperty(value = "可见类型")
    @TableField("VISIBLE_TYPE")
    private String visibleType;

    @ApiModelProperty(value = "所属组织")
    @TableField("ORG_ID")
    private String orgId;

    @ApiModelProperty(value = "存储方式")
    @TableField("STORE_TYPE")
    private String storeType;


    @TableField(exist = false)
    private List<KbaseKnowledgeTag> tagList;


}
